const i18n = require('i18n');

cc.Class({
    extends: cc.Component,

    properties: {
        
        btn_1: cc.Button,
        btn_2: cc.Button,
        btn_3: cc.Button,
        btn_4: cc.Button,
        btn_5: cc.Button,
        btn_6: cc.Button,
        btn_7: cc.Button,
        btn_8: cc.Button,
        btn_9: cc.Button,
        btn_10: cc.Button,
        btn_11: cc.Button,
        btn_12: cc.Button,
        btn_13: cc.Button,
        btn_14: cc.Button,
        btn_15: cc.Button,
        display: cc.Label
    },

    
    onClickedButton_1: function() {
        console.log('button_1 clicked!');
        this.display.textKey = i18n.t("huoshao_jia_rou");
    },

    onClickedButton_2: function() {
        console.log('button_2 clicked!');
        this.display.textKey = i18n.t("huoshao_jia_chang");
    },

    
    onClickedButton_3: function() {
        console.log('button_3 clicked!');
        this.display.textKey = i18n.t("huoshao_jia_zhutou");
    },
    onClickedButton_4: function() {
        console.log('button_4 clicked!');
        this.display.textKey = i18n.t("huoshao_jia_fensi");
    },
    onClickedButton_5: function() {
        console.log('button_5 clicked!');
        this.display.textKey = i18n.t("huoshao_jia_doujiao");
    },
    onClickedButton_6: function() {
        console.log('button_6 clicked!');
        this.display.textKey = i18n.t("huoshao_jia_haidai");
    },
    onClickedButton_7: function() {
        console.log('button_7 clicked!');
        this.display.textKey = i18n.t("tang_jidantang");
    },
    onClickedButton_8: function() {
        console.log('button_8 clicked!');
        this.display.textKey = i18n.t("tang_fangbianmian");
    },
    onClickedButton_9: function() {
        console.log('button_9 clicked!');
        this.display.textKey = i18n.t("tang_hulatang");
    },
    onClickedButton_10: function() {
        console.log('button_10 clicked!');
        this.display.textKey = i18n.t("yinliao_kuangquanshui");
    },
    onClickedButton_11: function() {
        console.log('button_11 clicked!');
        this.display.textKey = i18n.t("yinliao_binghongcha");
    },
    onClickedButton_12: function() {
        console.log('button_12 clicked!');
        this.display.textKey = i18n.t("yinliao_kele");
    },
    onClickedButton_13: function() {
        console.log('button_13 clicked!');
        this.display.textKey = i18n.t("yinliao_dabainiu");
    },
    onClickedButton_14: function() {
        console.log('button_14 clicked!');
        this.display.textKey = i18n.t("yinliao_xiaobainiu");
    },
    onClickedButton_15: function() {
        console.log('button_0 clicked!');
        this.display.textKey = i18n.t("waimai_paisong");
    },
    
});
